	include_once('../config/config.inc');
	include_once($raiz . '/connections/banco.inc');

	$sql = 'select * from conteudo';
	$cons = mysql_query($sql);
	while($linha = mysql_fetch_array($cons))
	{
		$codigo[] = $linha['codigo'];
		$descricao[] = $linha['descricao'];
		$conteudo[] = $linha['conteudo'];
		$ativo[] = $linha['ativo'];
		$x++;
	}
?>
<table width="100%" border="1" cellspacing="0" cellpadding="0">
	<tr>
		<td><strong>codigo</strong></td>
		<td><strong>descricao</strong></td>
		<td><strong>conteudo</strong></td>
		<td><strong>ativo</strong></td>
	</tr>
<?
	for($i = 0; $i < $x; $i++)
	{
?>
	<tr onMouseOver="bgColor='#FF9900';" onMouseOut="bgColor='#FFFFFF';">
		<td><?= strlen($codigo[$i]) > 0 ? $codigo[$i] : '&nbsp;' ?></td>
		<td><?= strlen($descricao[$i]) > 0 ? $descricao[$i] : '&nbsp;' ?></td>
		<td><?= strlen($conteudo[$i]) > 0 ? $conteudo[$i] : '&nbsp;' ?></td>
		<td><?= strlen($ativo[$i]) > 0 ? $ativo[$i] : '&nbsp;' ?></td>
	</tr>
<?
	}
?>
</table>